package com.bdqn.t320.dao;

import com.bdqn.t320.pojo.Page;
import com.bdqn.t320.pojo.SysUser;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

public interface SysUserMapper {

    public List<SysUser> getUserList(@Param(value = "user") SysUser sysUser, @Param(value = "pageIndex") int pageIndex, @Param(value = "pageSize") int pageSize);

    public Integer getCount(@Param(value = "user") SysUser sysUser);

    public int add(SysUser sysUser);

    SysUser login(String userCode);

    SysUser view(Integer id);

    int userCodeExist(String userCode);

    int deleteById(Integer id);

    //根据id修改
    public int update(SysUser user);
}
